home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 5685 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.6 KB

  1. Path: news.ccs.queensu.ca!news
  2. From: Wintermute <3mal5@qlink.queensu.ca>
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Anyone have any C++ programing challenges for me????
  5. Date: 6 Feb 1996 05:42:52 GMT
  6. Organization: System Infinity
  7. Message-ID: <4f6pos$c4m@knot.queensu.ca>
  8. References: <4f5rl3$jue@newsbf02.news.aol.com> <4f65sm$h3@ixnews2.ix.netcom.com>
  9. NNTP-Posting-Host: free1-slip204.tele.queensu.ca
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 1.1N (Macintosh; I; 68K)
  14. X-URL: news:4f65sm$h3@ixnews2.ix.netcom.com
  15.  
  16. swampwiz@ix.netcom.com(Jean P. Laborde ) wrote:
  17. >In <4f5rl3$jue@newsbf02.news.aol.com> diemacdie@aol.com (Diemacdie)
  18. >writes: 
  19. >>I'm looking for ideas for programs to work on. I am a high school
  20. >senior
  21. >>and I'm looking to learn as much as I can about c++ for next year.
  22.  
  23. >Build classes for the following:
  24. >BigInt
  25. >BigReal
  26. >String
  27.  
  28. On that note, why not try for classes that implement:
  29.   o  rationals (fractions, like 15/1 or 4/7 ... be sure to normalize 
  30. them, so 2/4 becomes 1/2)
  31.   o  a whole class hierarchy of scalars, such as reals, naturals, 
  32. integers, rationals, that are compatible:  overload the operators, so 
  33. adding a real to a natural returns a real, etc. (unless the real was 7.0 
  34. or the like)
  35.   o  matrices (overload operators to perform matrix multiplication, etc. 
  36. - a senior year algebra course will come in handy)
  37.   o general use buffers or pipes
  38.  
  39. --
  40. Wintermute  <3mal5@qlink.queensu.ca>  <http://qlink.queensu.ca/~3mal5/>
  41.  
  42. "If I really knew how to write, I could write something that someone
  43. could read and it would kill them."  -  william s. burroughs
  44.  
  45.  
  46.